package com.example.tellwin.home.contract;

import com.example.tellwin.base.BaseContract;
import com.example.tellwin.home.bean.HistoryBean;
import com.example.tellwin.home.bean.HotSearchBean;
import com.example.tellwin.home.bean.QuestionBean;

import java.util.List;

/**
 * @author : LinZePeng
 * @date : 2020/11/26
 * @Describe ：
 **/
public interface SearchContract {
    interface View extends BaseContract.BaseView {
        void historySearchResult(List<HistoryBean>historyBeans);
        void hotSearchResult(List<HotSearchBean>hotSearchBeans);
        void searchResult(List<QuestionBean>searchList);
        void searchFail();
        void loadMoreResult(List<QuestionBean>searchList);
        void searchNotMoreData();
        void likeQuestionResult(int position);
    }

    interface Presenter<T> extends BaseContract.BasePresenter<T> {
        void historySearch();
        void hotSearch();
        void search(String seacrhName);
        void loadMore();
        void likeQuestion(String questionId ,int position);
    }
}
